package com.lh0811.forge.dependency.security.core.model.entity;

import com.google.common.collect.Lists;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 开发平台-应用资源表
 *
 * @author
 * @email
 * @date 2024-05-24 15:39:41
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SecurityMenu implements Serializable {

    @Schema(description = "主键")
    private Long id;
    @Schema(description = "父节点id")
    private Long pid;
    @Schema(description = "资源名称")
    private String resName;
    @Schema(description = "请求地址")
    private String url;
    @Schema(description = "图标")
    private String icon;
    @Schema(description = "排序")
    private Integer orderNo;
    @Schema(description = "是否是叶子节点")
    private Boolean leafFlag;
    @Schema(description = "路由")
    private String router;
    @Schema(description = "元数据")
    private String meta;
    @Schema(description = "子菜单")
    private List<SecurityMenu> children = Lists.newArrayList();
}
